package org.example.myleet.p525;

import org.example.myleet.Utils.Assert;

public class Main {
    public static void main(String[] args) {
        Solution solution = new Solution();
        Assert.isTrue(2 == solution.findMaxLength(new int[]{0,1}));
        Assert.isTrue(2 == solution.findMaxLength(new int[]{0,1,0}));
        Assert.isTrue(4 == solution.findMaxLength(new int[]{0,1,0,1,1,1,1,1,1,1,1,0}));
        Assert.isTrue(18 == solution.findMaxLength(new int[]{0,1,0,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0}));
        Assert.isTrue(6 == solution.findMaxLength(new int[]{0,0,1,0,0,0,1,1}));
    }
}
